<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmChequeTerceros.aspx.vb" Inherits="TGB.FrmChequeTerceros" 
    title="Cheques de Terceros" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; height: 22px; text-align: left; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Cheques de Terceros" Font-Underline="False" Height="8px" Width="224px" Font-Names="Calibri"></asp:Label>
        </div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 520px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 13%; height: 14px;">
                &nbsp;<asp:Label ID="Label1" runat="server" CssClass="CampoLbl" Text="Banco:" BorderStyle="None"></asp:Label></td>
            <td style="width: 13%; height: 14px;" align="left" >
                <asp:TextBox ID="TxtBanco" runat="server" CssClass="campotxt" Height="16px" MaxLength="200"
                    TabIndex="1" Width="672px"></asp:TextBox></td>

        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 18px;">
                <asp:Label ID="Lbl8" runat="server" CssClass="CampoLbl" Text="Emitido Por:"
                    Width="160px" BorderStyle="None"></asp:Label></td>
            <td style="width: 13%; height: 18px;" align="left" >
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtObservaciones"
                    Display="None" ErrorMessage="RegularExpressionValidator" ValidationExpression="1234567890" CssClass="LabelErrorSmall"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 19px">
                <asp:RadioButtonList ID="OpcChequeNombre" runat="server" AutoPostBack="True" Height="32px"
                    Style="text-align: left" Width="160px" TabIndex="2" BorderStyle="None">
                    <asp:ListItem Value="1">Cliente</asp:ListItem>
                    <asp:ListItem Value="2">Otro</asp:ListItem>
                </asp:RadioButtonList></td>
            <td align="left" style="width: 13%; height: 19px">
                <asp:DropDownList ID="CboCliente" runat="server" CssClass="CampoCbo" Width="208px" AutoPostBack="True" AppendDataBoundItems="True" TabIndex="-1">
                <asp:ListItem Value="-1">Seleccione unCliente</asp:ListItem>
            </asp:DropDownList>
                    <asp:TextBox ID="TxtChequeNombre" runat="server" CssClass="campotxt" MaxLength="200"
                        TabIndex="-2" Width="640px" Height="16px"></asp:TextBox></td>
        </tr>
        </table>
           <table class="tabla">
     
        <tr>
            <td align="right" style="width: 26%; height: 20px;" colspan="4">
                </td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="width: 26%; height: 20px">
                <asp:Label ID="Label6" runat="server" Height="16px" Style="font-weight: bold; font-size: 14px;
                    vertical-align: middle; font-family: Calibri; background-color: #ff3333; text-align: center"
                    Text="Informacion del Cheque" Width="736px"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 18px">
                <asp:Label ID="Label4" runat="server" CssClass="CampoLbl" Text="Numero Cheque" Width="120px" BorderStyle="None"></asp:Label></td>
            <td align="left" style="width: 13%; height: 18px">
                <asp:TextBox ID="TxtNumeroCheque" runat="server" CssClass="campotxt" Width="248px" MaxLength="5" TabIndex="3"></asp:TextBox></td>
            <td align="right" style="width: 31%; height: 18px">
                <asp:Label ID="Label9" runat="server" CssClass="CampoLbl" Text="Observaciones" Width="168px"></asp:Label></td>
            <td align="left" rowspan="4" style="width: 105%">
                <asp:TextBox ID="TxtObservaciones" runat="server" CssClass="campotxt" Height="80px"
                    MaxLength="200" TextMode="MultiLine" Width="248px" TabIndex="7"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 20px">
                <asp:Label ID="Label5" runat="server" CssClass="CampoLbl" Text="Fecha de Vencimiento"
                    Width="144px" BorderStyle="None"></asp:Label></td>
            <td align="left" style="width: 13%; height: 20px">
                &nbsp;<BDP:BasicDatePicker ID="DpFechaVencimiento" runat="server" DisplayType="LabelAndImage" AutoPostBack="True">
                </BDP:BasicDatePicker>
            </td>
            <td align="left" style="width: 31%; height: 20px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 36px">
                <asp:Label ID="Label2" runat="server" CssClass="CampoLbl" Text="Fecha de  Emision"
                    Width="144px" BorderStyle="None"></asp:Label></td>
            <td align="left" style="width: 13%; height: 36px">
                &nbsp;<BDP:BasicDatePicker ID="DpFechaEmision" runat="server" DisplayType="LabelAndImage">
                </BDP:BasicDatePicker>
            </td>
            <td align="left" style="width: 31%; height: 36px">
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 19px">
                <asp:Label ID="Label7" runat="server" CssClass="CampoLbl" Text="Importe" Width="16px" BorderStyle="None"></asp:Label></td>
            <td align="left" style="width: 13%; height: 19px">
                <asp:TextBox ID="TxtImporte" runat="server" CssClass="campotxt" MaxLength="11" TabIndex="6"
                    Width="136px"></asp:TextBox></td>
            <td align="left" style="width: 31%; height: 19px">
                <asp:RangeValidator ID="RVImporte" runat="server" ControlToValidate="TxtImporte"
                    ErrorMessage="Error en Importe" MaximumValue="100000" MinimumValue="100" SetFocusOnError="True"
                    Type="Currency" Width="96px" CssClass="LabelErrorSmall"></asp:RangeValidator></td>
        </tr>
                </table>
        <br />
        <br />
        <table>
        <tr>
            <td align="right" colspan="4" style="height: 21px; vertical-align: middle; background-color: transparent; text-align: center; width: 556px;" >
<asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink" TabIndex="8" BorderStyle="None">Guardar</asp:LinkButton>
            <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink" TabIndex="-3" BorderStyle="None">Eliminar</asp:LinkButton>
            <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink" TabIndex="-4" BorderStyle="None">Buscar</asp:LinkButton>
            <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink" TabIndex="-5" BorderStyle="None">Cancelar</asp:LinkButton>&nbsp;
            </td>
        </tr>
        
    </table>
        <asp:Label ID="LblError" runat="server" Font-Bold="True" ForeColor="#C00000" CssClass="LabelError"></asp:Label><br />
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef; vertical-align: middle; text-align: center;">
        &nbsp;<asp:GridView ID="GridChequesTerceros" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" CellSpacing="1"
            ForeColor="Black" GridLines="Horizontal" Width="776px" AllowPaging="True" AllowSorting="True" style="font-size: 12px; font-family: Calibri" TabIndex="-6">
            <RowStyle HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("CodigoCheque") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkVer" runat="server" CommandName="Select">Ver</asp:LinkButton><asp:HiddenField
                            ID="HFChequePropio" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Banco Emisor">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Banco") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblBanco" runat="server" Text='<%# Bind("Banco") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Numero de Cheque">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("IdCheque") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="LblNumeroCheque" runat="server" Text='<%# Bind("IdCheque") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Importe">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Importe") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblImporte" runat="server" Text='<%# Bind("Importe") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha de Vencimiento">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FechaVence") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblFVencimiento" runat="server" Text='<%# Bind("FechaVence") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="FechaEmision">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FechaEmision") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblFEmision" runat="server" Text='<%# Bind("FechaEmision") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Observacion">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Observacion") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblObservacion" runat="server" Text='<%# Bind("Observacion") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Emitido Por">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("AnombreDe") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblAnombreDe" runat="server" Text='<%# Bind("AnombreDe") %>'></asp:Label>&nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
